gcc \
    -I/usr/X11R6/include \
    -I/usr/include/orbit-2.0/ \
    -I/usr/include/bonobo-activation-2.0/ \
    -I/usr/include/libbonobo-2.0/ \
    -I/usr/include/libbonoboui-2.0/ \
    -I/usr/include/libgnome-2.0/ \
    -I/usr/include/libgnomeui-2.0/ \
    -I/usr/include/atk-1.0/ \
    -I/usr/include/cairo/ \
    -I/usr/include/panel-2.0/ \
    -I/usr/include/gtk-2.0/ \
    -I/usr/lib/glib-2.0/include/ \
    -I/usr/include/glib-2.0/ \
    -I/usr/include/pango-1.0/ \
    -I/usr/lib/gtk-2.0/include/ \
    -g -c -o gelogger.o gelogger.c 2>/dev/stdout

gcc \
    -I/usr/X11R6/include \
    -I/usr/include/orbit-2.0/ \
    -I/usr/include/bonobo-activation-2.0/ \
    -I/usr/include/libbonobo-2.0/ \
    -I/usr/include/libbonoboui-2.0/ \
    -I/usr/include/libgnome-2.0/ \
    -I/usr/include/libgnomeui-2.0/ \
    -I/usr/include/atk-1.0/ \
    -I/usr/include/cairo/ \
    -I/usr/include/panel-2.0/ \
    -I/usr/include/gtk-2.0/ \
    -I/usr/lib/glib-2.0/include/ \
    -I/usr/include/glib-2.0/ \
    -I/usr/include/pango-1.0/ \
    -I/usr/lib/gtk-2.0/include/ \
    -g -c -o gnome.o gnome.c 2>/dev/stdout

gcc \
    -I/usr/X11R6/include \
    -I/usr/include/orbit-2.0/ \
    -I/usr/include/bonobo-activation-2.0/ \
    -I/usr/include/libbonobo-2.0/ \
    -I/usr/include/libbonoboui-2.0/ \
    -I/usr/include/libgnome-2.0/ \
    -I/usr/include/libgnomeui-2.0/ \
    -I/usr/include/atk-1.0/ \
    -I/usr/include/cairo/ \
    -I/usr/include/panel-2.0/ \
    -I/usr/include/gtk-2.0/ \
    -I/usr/lib/glib-2.0/include/ \
    -I/usr/include/glib-2.0/ \
    -I/usr/include/pango-1.0/ \
    -I/usr/lib/gtk-2.0/include/ \
    -g -c -o backend.o backend.c 2>/dev/stdout
        
gcc  -L`gcc -print-file-name=`  -L/usr/lib/ -L/usr/X11R6/lib/  \
     -lpanel-applet-2 -lsqlite3 \
    -o gelogger_gnome gnome.o gelogger.o backend.o 
    #/usr/lib/crtn.o 


        
#sudo cp worklogger /usr/lib64/gnome-panel/

killall gelogger_gnome

sudo cp gelogger_gnome /usr/lib/gnome-panel/
sudo cp gelogger.server /usr/lib/bonobo/servers/
